package com.googlecode.yoohoo.xmppcore.protocol.stanza;

import com.googlecode.yoohoo.xmppcore.protocol.parsing.ProtocolKey;

public class Iq extends Stanza {
	public static final ProtocolKey PROTOCOL_KEY = new ProtocolKey("iq", null);
	
	private static String[] IQ_TYPES;
	
	static {
		IqType[] iqTypes = IqType.values();
		IQ_TYPES = new String[iqTypes.length];
		for (int i = 0; i < iqTypes.length; i++) {
			IQ_TYPES[i] = iqTypes[i].toString();
		}
	}

	@Override
	protected String[] getValidTypes() {
		return IQ_TYPES;
	}

	@Override
	public StanzaKind getStanzaKind() {
		return StanzaKind.IQ;
	}
	
}
